<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>shiro</title>
    <style>
        #login_form{
            display: block;
            position: absolute;
            transform: translate(-50%, -61.8%);
            /*左右方向的位置为50%, 上下方向的位置为黄金分割比例0.618*/
            left: 50%;
            top: 50%;
            width: 450px;
        }
        #header{
            height: 75px;
        }
    </style>
</head>
<body>
<div id="header">
    <img th:src="@{../apache-shiro-logo.png}" style="height: 100%">
</div>
<div id="login">
    <h1>登陆页面</h1>
    <div id="tips">
        <p th:text="${msg}" style="color: red"></p>
    </div>
    <hr>
    <div id="login_form">
        <form action="/user/login"  method="post">
            账号：<input type="text" name="account"/><br><br>
            密码：<input type="password" name="password"/><br><br>
            <a th:href="@{/user/toRegister}" style="text-decoration: none">无账号，去注册</a><br><br>
            <input type="submit" value="提交"/>
        </form>
    </div>
</div>
</body>
</html>